package com.spzx.user.controller;

import com.spzx.common.core.web.domain.AjaxResult;
import com.spzx.user.domain.UserCollect;
import com.spzx.user.service.IUserCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.spzx.common.core.web.controller.BaseController;

import java.util.List;

/**
 * <p>
 * 用户收藏表 前端控制器
 * </p>
 *
 * @author atguigu
 * @since 2024-11-18
 */
@RestController
@RequestMapping("/userCollect")
public class UserCollectController extends BaseController {

    @Autowired
    private IUserCollectService userCollectService;

    @GetMapping("/list")
    public AjaxResult selectUserCollectList(UserCollect userCollect) {
        List<UserCollect> userCollectList =  userCollectService.selectUserCollectList(userCollect);
        return AjaxResult.success(userCollectList);
    }
}
